import { defineComponent } from "vue";
import { useRouter } from "vue-router";
import styles from "./403.module.less";

export default defineComponent({
  name: '403',
  setup() {
    const router = useRouter();
    return () => (
      <div class={styles.container}>
        <a-result status="403" title="403" sub-title="对不起, 你没有此页面的访问权限。" v-slots={{
          extra: () => (
            <a-button onClick={() => { router.go(-1) }}>返回上一页</a-button>
          )
        }}>
        </a-result>
      </div>
    )
  }
})